<?php

class mabsent extends CI_Model {
    


        
 


       	function getabsentsData(){
       	        $this->load->library('serversidedatatables');
                $dblokal  = $this->load->database("default", TRUE);

                $sIndexColumn = "item_name";
                $status="";
                $defaultOrder = "1";
                $userlogin = $this->session->userdata('username');

                $aColumns = array("user_id", "user_name","region","cluster", "lon", "lat", "acc", "absen_date");
                $str1 = array(" , ", ", ' '");
                $str2 = array(" ", " ");
                $inputQuery = "select ".str_replace($str1, $str2, implode(", ", $aColumns))." from v_ssp_absent";
                
                return $this->serversidedatatables->executeServerSideProcess($defaultOrder, $status, $userlogin, $inputQuery, $aColumns, $sIndexColumn);

		}
        


    

} //end class